#include <iostream>

#include "triangle.h"

int main()
{
    point a, b, c;

    std::cin >> a >> b >> c;

    triangle t(a, b, c);

    for (triangle::const_iterator it = t.begin(); it != t.end(); it++)
    {
        std::cout << (*it).first << " " << (*it).second << "\n";
    }

    return 0;
}
